# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-soupsieve
_pkgname=soupsieve
pkgver=1.9.6
pkgrel=3
pkgdesc='A modern CSS selector implementation for Beautiful Soup.'
url='https://pypi.org/project/soupsieve/#files'
arch=('any')
license=('MIT')
depends=('python2' 'python2-backports.functools_lru_cache')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('3728217bbb95dd3dbf4ccbcb229b9abcd02c4eb2837da88f9f6ef1a9439722163a44e244ebcdd18cc817bfb412a529cf46ad35ea62e1f0357028a3628276d071')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

